<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>OAuth2 Client 测试</title>
</head>
<body>
<h2>OAuth2 Client 测试</h2>
<p>点击下方按钮跳转到授权服务器进行登录授权：</p>

<!-- 这里的 URL 要和你的授权服务器配置一致 -->
<a th:href="@{'http://127.0.0.1:8011/oauth2/authorize'(
        response_type='code',
        client_id='demo-client',
        scope='openid profile',
        redirect_uri='http://127.0.0.1:8080/debug/callback'
    )}">
    <button>去授权</button>
</a>

</body>
</html>
